﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using SimpleService.Config;

namespace SimpleService.MVC
{
    public class MvcConfig
    {
        private static ConfigHelper cfg = new ConfigHelper();
        public static string type = "mvc";
        

        public static string templatePath
        {
            get
            {
                cfg.fileName = type;
                return MvcUtility.GetMapPath(".") + cfg.Get("templatePath");
            }
            set { }
        }

        public static bool templateReloading
        {
            get
            {
                cfg.fileName = type;
                return Convert.ToBoolean(cfg.Get("templateReloading"));
            }
            set { }
        }

        public static string defaultPage
        {
            get
            {
                cfg.fileName = type;
                return cfg.Get("defaultPage");
            }
            set { }
        }

        public static string defaultNamespace
        {
            get
            {
                cfg.fileName = type;
                return cfg.Get("defaultNamespace");
            }
            set { }
        }
        
    }
}
